//
//  CustomTableViewCell.m
//  ZAKER
//
//  Created by dllo on 15/8/25.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "CustomTableViewCell.h"

@implementation CustomTableViewCell

-(void)dealloc
{
    
    [_timeLabel release];
    [_titleLabel release];
    [_nameLabel release];
    [_myImage release];
    
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self != nil) {
        
        self.myImage = [[[UIImageView alloc]initWithFrame:CGRectMake(10 * myWidth, 10 * myHeight, (375 - 20) * myWidth, 200 * myHeight)] autorelease];
        [self.contentView addSubview:_myImage];
        
        
        self.titleLabel = [[[UILabel alloc]initWithFrame:CGRectMake(10 * myWidth, 215 * myHeight, (375 - 20) * myWidth, 30 * myHeight)] autorelease];
        _titleLabel.font = [UIFont systemFontOfSize:17];
        _timeLabel.numberOfLines = 0;
        [self.contentView addSubview:self.titleLabel];
        
        
        self.nameLabel = [[[UILabel alloc] initWithFrame:CGRectMake(20 * myWidth, 190* myHeight, 120 * myWidth, 15 * myHeight)] autorelease];
        [self.contentView addSubview:self.nameLabel];
        self.nameLabel.numberOfLines = 0;
        _nameLabel.font = [UIFont systemFontOfSize:13];
        
        
        self.timeLabel = [[[UILabel alloc] initWithFrame:CGRectMake(310 * myWidth, 190 * myHeight, 65 * myWidth, 15 * myHeight)] autorelease];
        _timeLabel.font = [UIFont systemFontOfSize:13];
        self.timeLabel.numberOfLines = 0;
        [self.contentView addSubview:self.timeLabel];
        
        }
    
    return self;
    
}


- (void)awakeFromNib
{
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

@end
